import request from '@/utils/request'

// 登录函数
/**
 * @description: 登录函数
 * @param {*} data { mobile,password}
 * @return {*} promise
 */
export function loginAPI(data) {
  return request({
    url: '/park/login',
    method: 'POST',
    data
  })
}
/**
 *
 * @param {*} params {name,page,pageSize}
 * @returns
 */

export function getEnterpriseAPI(params) {
  return request({
    url: '/park/enterprise',
    method: 'GET',
    params
  })
}
/**
 *
 * @param {*} id {id:string}
 * @returns
 */

export function delEnterpriseAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'DELETE'
  })
}
